package com.xiaozhengkeji.springboot.frame.easy.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DaysUtil {
    public static String getStringDate() {
        Date day = new Date();
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return df.format(day);
    }

    public static String getStringDateS() {
        Date day = new Date();
        SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");
        return df.format(day);
    }

    public static String DateToString(Date day) {
        SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");
        return df.format(day);
    }
}
